/*
 * TestClass.h
 *
 *  Created on: 2013-4-3
 *      Author: oven
 */

#ifndef TESTCLASS_H_
#define TESTCLASS_H_


class TestClass {
public:
	int a;
	TestClass();
	virtual ~TestClass();
	void showVolume();

	//声明为虚构,则showVolume会动态绑定子类的volume方法
	void virtual volume();
};

class TestClass2:public TestClass{
public:
	int a;
	void virtual volume();
	TestClass2();
};

#endif /* TESTCLASS_H_ */
